<template>
  <div class="crumb">
    <template v-for="(item, index) in arr">
      <a href="#" :key="index">{{ item.name }}</a>
      <template v-if="index < arr.length - 1"> / </template>
    </template>
  </div>
</template>

<script>
export default {
  props: ["arr"],
  data() {
    return {};
  },
};
</script>

<style scoped lang="less">
.crumb {
  margin: 10px 0;
  a {
    color: #000;
    text-decoration: none;
  }
}
</style>